package test.clone;
public class testClass extends testParent implements Cloneable
	{
		
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((a == null) ? 0 : a.hashCode());
		result = prime * result + ((b == null) ? 0 : b.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		testClass other = (testClass) obj;
		if (a == null) {
			if (other.a != null)
				return false;
		} else if (!a.equals(other.a))
			return false;
		if (b == null) {
			if (other.b != null)
				return false;
		} else if (!b.equals(other.b))
			return false;
		return true;
	}
	public String toString() {
		return super.toString() + " testClass [a=" + a + ", b=" + b + "]";
	}
		public String a;
		public String getA() {
			return a;
		}
		public void setA(String a) {
			this.a = a;
		}
		public Integer getB() {
			return b;
		}
		public void setB(Integer b) {
			this.b = b;
		}
		public Integer b;
		
		public testClass clone(){                      
			testClass o = null;                  
            try{                     
            	o = (testClass) super.clone();              
            }catch (Exception e){System.out.println("can't clone object");}
            return o; 
}
		
		
	}